DateCompare(date1, date2 [, datePart])PerFORMs a full date/time comparison of two dates. Returns -1 if date1 is less than date2; returns 0 if date1 is equal to date2; returns 1 if date1 is greater than date2. See the description of datePart for information on specifying the precision of the comparison.
Date/time object in the period from 100 AD to 9999 AD.
Date/time object in the period from 100 AD to 9999 AD.
Optional. The precision of the comparison. This parameter can have any of the following values:
By default, precision is to the second.